package com.watson.eshotel.entity;

import lombok.Data;

import java.util.List;

/**
 * 分页实体类
 */
@Data
public class PageResult<T> {
    private Long total;
    private List<T> hotels;

    public PageResult() {
    }

    public PageResult(Long total, List<T> hotels) {
        this.total = total;
        this.hotels = hotels;
    }
}
